package com.cmw.auntapp.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @desc: 常量类
 * @author: chengmingwei
 * @date: 2021/4/26 9:02 PM
 * @contact: phone(微信同号):13922111489 / email: 340360491@qq.com
 */
public class Constant {
    /**
     * Http 连接超时时间
     */
    public static final String HTTP_CONNECT_TIME_OUT_KEY = "HTTP_CONNECT_TIME_OUT";
    /**
     * Http 读取超时时间
     */
    public static final String HTTP_READ_TIME_OUT_KEY = "HTTP_READ_TIME_OUT";
    /**
     * Http 写超时时间
     */
    public static final String HTTP_WRITE_TIME_OUT_KEY = "HTTP_WRITE_TIME_OUT";

    /**
     *  MainActivity 中的检查更新提示 [2:检查更新提示What]
     */
    public static final int HANDLER_CHECK_UPDATE_CONFIRM = 2;
    /**
     *  MainActivity 中的APK下载进度 [3:APK下载进度What]
     */
    public static final int HANDLER_APK_DOWNLOAD_PROGRESS = 3;

    /**
     * 是否debug模式，true会打印信息，正式上线要改为false
     */
    public static final boolean DEBUG_MODE = true;
    /**
     * 用户Auth Token key
     */
    public static final String USER_USERAUTHTOKEN_KEY = "AUTH_USER_TOKEN";
    /**
     * 用户真实姓名 key
     */
    public static final String USER_RNAME_KEY = "rname";
    /**
     * 用户员工ID key
     */
    public static final String USER_INEMPID_KEY = "inempId";
    /**
     * 用户会员ID key
     */
    public static final String USER_MEMBERID_KEY = "memberId";
    /**
     * 是否跳转到登录
     */
    public static final String IS_GOTO_LOGIN_KEY = "IS_GOTO_LOGIN";
    /**
     * 调用API时，是否显示 Loading 提示
     */
    public static final String SHOW_LOADING_KEY = "REQUEST_SHOW_LOADING";
    /**
     * 调用API时，是否需要用户认证TOKEN
     */
    public static final String NO_USER_AUTH_TOKEN_KEY = "NO_USER_AUTH_TOKEN_KEY";
    /**
     * 调用API时，是否需要用户认证TOKEN [YES: 不需要]
     */
    public static final String NO_USER_AUTH_TOKEN_VAL_YES = "YES";
    /**
     * 阿姨地址最后一次更新时间缓存
     */
    public static final String AUNT_LOCATION_LAST_TIME_KEY = "AUNT_LOCATION_LAST_TIME";
    /**
     * 阿姨地址缓存
     */
    public static final String AUNT_LOCATION_KEY = "AUNT_LOCATION_INFO";
    /**
     * 调用API时，显示 Loading 提示
     */
    public static final String SHOW_LOADING_YES = "1";

    /**
     * 未登录:1
     */
    public static final int NO_LOGIN = 1;

    /**
     * 未实名认证:2
     */
    public static final int NO_AUTH = 2;


    /**
     * 业务类型 [50:阿姨端用户协议(APP)]
     */
    public static final int ATTACHMENT_FORMTYPE_50 = 50;

    /**
     * 业务类型 [51:合作协议(APP)]
     */
    public static final int ATTACHMENT_FORMTYPE_51 = 51;

    /**
     * 业务类型 [52:奖励说明(APP)]
     */
    public static final int ATTACHMENT_FORMTYPE_52 = 52;

    /**
     * 业务类型 [53:清洁标准工具包说明(APP)]
     */
    public static final int ATTACHMENT_FORMTYPE_53 = 53;

    /**
     * 上岗状态 [0:离岗]
     */
    public static final int AUNT_PSTATUS_0 = 0;
    /**
     * 上岗状态 [0:上岗]
     */
    public static final int AUNT_PSTATUS_1 = 1;

    /**
     * 订单状态 [-1:已超时]
     */
    public static final int ORDER_XSTATUS_FU1 = -1;
    /**
     * 订单状态 [0:待接单]
     */
    public static final int ORDER_XSTATUS_0 = 0;
    /**
     * 订单状态 [1:已取消(客户)]
     */
    public static final int ORDER_XSTATUS_1 = 1;
    /**
     * 订单状态 [2:已接单]
     */
    public static final int ORDER_XSTATUS_2 = 2;
    /**
     * 订单状态 [3:已取消(阿姨)]
     */
    public static final int ORDER_XSTATUS_3 = 3;
    /**
     * 订单状态 [4:服务中]
     */
    public static final int ORDER_XSTATUS_SERVICE_IN = 4;
    /**
     * 订单状态 [5:服务完成]
     */
    public static final int ORDER_XSTATUS_SERVIE_OK = 5;
    /**
     * 订单状态 [6:已支付]
     */
    public static final int ORDER_XSTATUS_6 = 6;
    /**
     * 订单状态 [7:已评价]
     */
    public static final int ORDER_XSTATUS_7 = 7;
    /**
     * 订单状态 [8:已结算(未评价)]
     */
    public static final int ORDER_XSTATUS_8 = 8;
    /**
     * 订单状态 [9:已结算（已评价)]
     */
    public static final int ORDER_XSTATUS_9 = 9;

    /**
     * 对象来源：1：阿姨
     */
    public static final int REQUESTSOURCE_AUNT = 1; // 对象来源：1：阿姨，2：客户

    /**
     * 对象来源：2：客户
     */
    public static final int REQUESTSOURCE_CUSTOMER = 2; // 对象来源：1：阿姨，2：

    /**
     * 附件对应的业务类型：20：会员图像
     */
    public static final int ATTACHMENT_FORM_TYPE_20 = 20; // 20:会员图像


    public static final Map<Integer, String> ORDER_XSTATUS_DES = new HashMap<Integer, String>(){{
        put(ORDER_XSTATUS_FU1, "已超时");    // -1:已超时
        put(ORDER_XSTATUS_0, "待接单");   // 0:待接单
        put(ORDER_XSTATUS_1, "已取消(客户)");   // 1:已取消(客户)
        put(ORDER_XSTATUS_2, "已接单");   // 2:已接单
        put(ORDER_XSTATUS_3, "已取消(阿姨)");   // 3:已取消(阿姨)
        put(ORDER_XSTATUS_SERVICE_IN, "服务中");   // 4:服务中
        put(ORDER_XSTATUS_SERVIE_OK, "服务完成");   // 5:服务完成
        put(ORDER_XSTATUS_6, "已支付");   // 6:已支付
        put(ORDER_XSTATUS_7, "已评价");   // 7:已评价
        put(ORDER_XSTATUS_8, "已结算(未评)");   // 8:已结算(未评价)
        put(ORDER_XSTATUS_9, "已结算（已评)");   // 9:已结算（已评价)
    }};

    /**
     * 用户中心点返回时的目标Activity
     */
    public static Class userCenterBackActivity = null;

    /**
     * 是否已经踏转到登录页标记
     */
    public static boolean isGoLogin = false;

    /**-------- IM Chat 相关常量类 CODE START ---------**/
    public static final String TAG = "rance";
    public static final String AUTHORITY = "com.chatui.fileprovider";
    /** 0x001-接受消息  0x002-发送消息**/
    public static final int CHAT_ITEM_TYPE_LEFT = 0x001;
    public static final int CHAT_ITEM_TYPE_RIGHT = 0x002;
    /** 0x003-发送中  0x004-发送失败  0x005-发送成功**/
    public static final int CHAT_ITEM_SENDING = 0x003;
    public static final int CHAT_ITEM_SEND_ERROR = 0x004;
    public static final int CHAT_ITEM_SEND_SUCCESS = 0x005;

    public static final String CHAT_FILE_TYPE_TEXT = "text";
    public static final String CHAT_FILE_TYPE_FILE = "file";
    public static final String CHAT_FILE_TYPE_IMAGE = "image";
    public static final String CHAT_FILE_TYPE_VOICE = "voice";
    public static final String CHAT_FILE_TYPE_CONTACT = "contact";
    public static final String CHAT_FILE_TYPE_LINK = "LINK";
    /**-------- IM Chat 相关常量类 CODE END ---------**/
}
